-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimization package #343
Optimization package #343
Conversation
uprendis
commented
Jul 25, 2022
•
edited
Loading
edited
- add multidb framework, which allows to configure DBs and tables layout based on routing rules. It allows to tune performance by splitting/merging DBs, configuring DB type and DB cache amount
- add batching for genesis processing, which speeds up genesis blocks processing by ~2x
- DBs files descriptors limits is configurable and scaled by default according to OS process limit (fix File Descriptor limit #323)
- add caching for event IDs
- add caching for LLR voting weights
- during fullsync, LLR syncing is active only if events are already synced up
- fix nil cachescale issue after loading toml config file
log.Info("Stats before compaction", "db", name) | ||
showLeveldbStats(db) | ||
log.Info("Stats before compaction", "db", humanName) | ||
showLeveldbStats(db) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we might rename this method to showDBStats()
for generic name in multi db
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, but after we merge your changes for new statter. For now, this method indeed works only for leveldb
@uprendis I rebased the PR with develop branch and cannot start the opera node (from scratch)
And a test FAILED aslo when running
|
ah, this is just need to update the |
Got you, will rebase and fix it |
Co-authored-by: Ha DANG <[email protected]>
c3034aa
to
53eddab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be fixed now after 53eddab
Great, I worked for me!